/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package alcatelparser.tags;

import alcatelparser.modules.BuilderFactory;
import alcatelparser.modules.I;

/**
 *
 * @author geniuz
 */
public class ImmediateNotificationTag extends DefaultParserTag
{

    public ImmediateNotificationTag()
    {
    }

    public final void parseTag(int ai[], int i)
    {
        setStandartLength(ai, i);
        _array = ai;
        _startParsePosition = i;
        int j = ai[i + 2];
        if(isFullForm())
        {
            String s = I.I(548);
            if(j == 1)
                s = I.I(1023);
            String s2 = getTagPropertiesValue((new StringBuilder()).append(I.I(6722)).append(s).toString());
            s2 = (new StringBuilder()).append(getTagIdentifyContent(i, i + 1)).append(toHex(ai[i + 2])).append(I.I(5979)).append(s2).toString();
            BuilderFactory.getBuilder().writeTagContent(3, 0, getTagPropertiesValue(I.I(1860)), s2);
        } else
        if(isTagChecked(I.I(1822)))
        {
            String s1 = "";
            if(isFieldsDecoding())
                s1 = j != 1 ? I.I(6738) : I.I(6733);
            else
                s1 = toHex(ai[i + 2]);
            BuilderFactory.getBuilder().writeTagContent(1, 0, getReducedTagPropertiesValue(I.I(1860)), s1);
        }
    }

    public final String getParseIdentityTag()
    {
        return I.I(6719);
    }
}
